package cn.exrick.xboot.modules.assessment.service;

import cn.exrick.xboot.base.XbootBaseService;
import cn.exrick.xboot.common.vo.SearchVo;
import cn.exrick.xboot.modules.assessment.entity.HkFormRelationShip;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * 表单表单项关联表接口
 * @author yck
 */
public interface HkFormRelationShipService extends XbootBaseService<HkFormRelationShip, String> {

    /**
    * 多条件分页获取
    * @param hkFormRelationShip
    * @param searchVo
    * @param pageable
    * @return
    */
    Page<HkFormRelationShip> findByCondition(HkFormRelationShip hkFormRelationShip, SearchVo searchVo, Pageable pageable);

    List<HkFormRelationShip> getAllByFormId(String id);

    List<HkFormRelationShip> findByFormId(String formId);

    List<HkFormRelationShip> findByItemId(String itemId);
}